﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;
using Common.Model;

namespace Common.Services
{
    public interface IEntityManagerService<E, C, EV>
        where E : EntityObject
        where C : CriteriaEntity
        where EV : ViewEntity
    {
        E Read(Guid id);

        List<EV> Read(C criteria);

        void Save(E entity);
    }
}
